package com.xjj.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.xjj.entity.Leave;
import com.xjj.entity.PageBean;
import com.xjj.vo.LeaveVO;

import java.util.List;

/**
 * @author : 王泰元
 * @date : 2022/10/24 17:17
 */
public interface LeaveService extends IService<Leave> {
    PageBean<Leave> getByPage(LeaveVO leaveVo);

    void authLeave(Leave leave,String token) throws JsonProcessingException;

    List<Leave> getByStudent(Integer studentId, Integer status);

    Integer addLeave(Leave leave);

    boolean checkLeave(Integer id, Integer parentId);
}
